home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3shell.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.5 KB  |  72 lines

  1.  
  2. // JavaScript wrapper for r3shell.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_SHELL_H = 1;
  7. include("oops/r3osgdgt.js")
  8.  
  9.  
  10. var R3CLID_SHELL = 270;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Write a string to the gadget.
  16. // p3: String, null terminated string to be written
  17.  
  18. R3SHELLM_WRITE = 270000;
  19.  
  20. function mR3SHELLM_WRITE(p3) {
  21.   DoA(this.r3obj, 270000, p3, R3TID_STRING, 0);
  22. }
  23.  
  24. // Description: Read contents of the gadget to given buffer
  25. // Returns: Integer, number of bytes read
  26. // p1: Integer, size of the buffer
  27. // p3: String, buffer for reading
  28.  
  29. R3SHELLM_READ = 270001;
  30.  
  31. function mR3SHELLM_READ(p1, p3) {
  32.   return   DoA2(this.r3obj, 270001, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0);
  33. }
  34.  
  35. // Description: Clear the contents of the gadget
  36.  
  37. R3SHELLM_CLEAR = 270002;
  38.  
  39. function mR3SHELLM_CLEAR() {
  40.   DoA(this.r3obj, 270002, 0, R3TID_INTEGER, 0);
  41. }
  42.  
  43. // Description: Size of buffer for holding the text
  44. // Returns: Integer, size
  45.  
  46. R3SHELLM_GETBUFSIZE = 270003;
  47.  
  48. function mR3SHELLM_GETBUFSIZE() {
  49.   return   DoA(this.r3obj, 270003, 0, R3TID_INTEGER, 0);
  50. }
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. function r3Shell () { 
  58.    this.base = r3God;
  59.    if(arguments.length) {
  60.       this.base(R3CLID_SHELL, arguments);
  61.    }
  62.    // Methods
  63.    this.WRITE=mR3SHELLM_WRITE;
  64.    this.READ=mR3SHELLM_READ;
  65.    this.CLEAR=mR3SHELLM_CLEAR;
  66.    this.GETBUFSIZE=mR3SHELLM_GETBUFSIZE;
  67.  
  68.    // Attributes
  69. }
  70.  
  71. r3Shell.prototype=new r3Osgadget;
  72. // r3shell.h_H